Page({
    data: {
        navBarConfig: {
            title: '背景样式',
            show: true,
            back: true,
            home: true,
        },
    },
    onLoad: function (options) {

    },
    changeBgImg: function (e) {
        let img = "";
        if (e.detail.value) {
            img = "https://picsum.photos/200";
        }
        this.setData({
            "pageConfig.pageBgImg": img
        })
    },
    changeBgImgScroll: function (e) {
        this.setData({
            "pageConfig.pageBgImgScroll": e.detail.value
        })
    }
});